package com.bb.blog.code;

import com.bb.blog.code.mybatis.mapper.MapperXScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.EnableAspectJAutoProxy;


import java.util.ArrayList;
import java.util.List;

@SpringBootApplication
@MapperXScan(scanPackages = "com.bb.blog.code.mybatis.example")
@EnableAspectJAutoProxy

public class CodeApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(CodeApplication.class, args);
    }

    private static void add(Object o) {
        return;
    }

    private static int update(Object o) {
        return 1;
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
       builder.sources(CodeApplication.class);
       return builder;
    }
}
